Skip to content

Configure alert thresholds and notification settings for a specific appliance

Request

Applicable to appliances only.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

Bodyapplication/jsonrequired
enabledboolean

Whether alert threshold evaluation is active on this node

thresholdsArray of objects

Alert rules evaluated against shadow reported telemetry values

curl -i -X PUT \
  'https://apidocs.trustgrid.io/_mock/node/{nodeID}/config/alert' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "enabled": true,
    "thresholds": [
      {
        "id": "string",
        "name": "string",
        "telemetry": "cpu",
        "max": 0,
        "exceededWindow": 0,
        "exceededWindowUnit": "minutes"
      }
    ]
  }'

Responses

OK